using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;

namespace PlatformShoot
{
    public class MainPanel : MonoBehaviour
{
    private TextMeshProUGUI mScoreText;
    // Start is called before the first frame update
    private void Start()
    {
        mScoreText = transform.Find("ScoreText").GetComponent<TextMeshProUGUI>();
        UpdateScoreText(0);
    }

    // Update is called once per frame

    public void UpdateScoreText(int score)
    {
        mScoreText.text = $"Score: {score}";
    }
}
}
